<include file="Public:header" />
<div class="tablelist">
    <p class="line" style="margin-top:0;"></p>
    <div class="title_h2">搜索</div>
    <form action="{:U('Chain/index')}" method="get" id="searchform">
        <input type="hidden" name="title_like" value="1" />
        <!--<input type="hidden" name="_order" id="_order" value="{$order}" />-->
        <!--<input type="hidden" name="_sort" id="_sort" value="{$sort}" />-->
        <div class="filed fl">
            <input type="text" name="fieldsvalue" value="{$Think.get.fieldsvalue}"/>
        </div>
        <div class="filed fl">
            <input type="submit" name="dosubmit" class="button" value="" />
        </div>
    </form>

    <form name="myform" id="myform" action="{:U('Chain/bupdate')}" method="post">
        <input type="hidden" name="moduleid" value="{$moduleid}">
        <table class="table">
            <tr>
                <th colspan="12" class="top_th">
                    <a class="add" href="{:U('Chain/add')}">添加{$modulename}</a>
                </th>
            </tr>
            <tr class="nbg">
                <th><input type="checkbox" id="check"></th>
                <th>编号</th>
                <th>关键词</th>
                <th>链接地址</th>
                <th>窗口</th>
                <th>频率</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="vo">
                <tr>
                    <td><input type="checkbox" name="key" value="{$vo.id}"></td>
                    <td>{$vo.id}</td>
                    <td>{$vo.keyword}</td>
                    <td>{$vo.url}</td>
                    <td><eq name="vo.target" value="_blank">新窗口<else />原窗口</eq></td>
                <td>{$vo.number}</td>
                <td><eq name="vo.status" value="1">显示<else />不显示</eq></td>
                <td>
                    <a href="javascript:doDialog('{:U('Chain/edit?id='.$vo['id'])}','修改分类——{$vo['keyword']}','520','320')" title="修改分类——{$vo['keyword']}">{:getIcon('edit','修改分类')}</a>
                    <a href="{:U('Chain/delete?id='.$vo['id'])}"
                       onclick="return confirm('你确定要删除此信息吗？')" title="删除信息">{:getIcon('del','删除信息')}</a>
                </td>
                </tr>
            </volist>
            <tr><td colspan="12">
                    <input type="submit" value="更新分类" class="button" />{:tips('当英文别名为空时，系统会自动生成分类名的拼音作为英文别名')}
                </td></tr>
            </tbody>
        </table>
    </form>
    <div id="pages">{$page}</div>
</div>
<include file="Public:footer" />